from django.contrib import admin

from article.models import Article

# Register your models here.

class ArticleManage(admin.ModelAdmin):
    # 列表表头
    list_display = ('article_title', 'article_intro', 'create_user')
    # 过滤器
    list_filter = ('article_title', 'create_user')
    # 搜索框
    search_fields = ('article_title', )

admin.site.register(Article,ArticleManage)